<?php defined('SYSPATH') or die('No direct script access.');
Route::set('fenxiao_config', 'fenxiao/admin/config(/<action>(/<params>))', array('params' => '.*'))
    ->defaults(array(
        'controller' => 'config',
        'action' => 'params',
        'directory'=>'admin/fenxiao'
    ));

Route::set('fenxiao_rank', 'fenxiao/admin/rank(/<action>(/<params>))', array('params' => '.*'))
    ->defaults(array(
        'controller' => 'rank',
        'action' => 'list',
        'directory'=>'admin/fenxiao'
    ));
Route::set('fenxiao_group', 'fenxiao/admin/group(/<action>(/<params>))', array('params' => '.*'))
    ->defaults(array(
        'controller' => 'group',
        'action' => 'list',
        'directory'=>'admin/fenxiao'
    ));
Route::set('fenxiao_product', 'fenxiao/admin/product(/<action>(/<params>))', array('params' => '.*'))
    ->defaults(array(
        'controller' => 'product',
        'action' => 'list',
        'directory'=>'admin/fenxiao'
    ));

Route::set('fenxiao_finance', 'fenxiao/admin/finance(/<action>(/<params>))', array('params' => '.*'))
    ->defaults(array(
        'controller' => 'finance',
        'action' => 'index',
        'directory'=>'admin/fenxiao'
    ));

Route::set('fenxiao_admin', 'fenxiao/admin((/<controller>)(/<action>(/<params>)))', array('params' => '.*'))
    ->defaults(array(
        'controller' => 'fenxiao',
        'action' => 'fenxiao',
        'directory'=>'admin'
    ));

